#ifndef PIXEL_H
#define PIXEL_H

#include <qglobal.h>

union PixelMask
{
    int RGBA;
    struct 
    {
        uchar R;
        uchar G;
        uchar B;
        uchar A;
    };
};

class Pixel
{
public:
    int R;
    int G;
    int B;
    int A;
    Pixel operator + (Pixel& rhsPixel);
    Pixel operator - (Pixel& rhsPixel);
    Pixel operator * (Pixel& rhsPixel);
    Pixel operator ^ (double power);
	Pixel();
	Pixel(int r, int g, int b);
	Pixel(int r, int g, int b, int a);
    void Normalize(float oldMin[], float oldMax[], float newMin[], float newMax[]);
    void CutOff(int min = 0, int max = 255);
};


#endif // PIXEL_H
